import request from "@/utils/request"

export const pageApi=(name,gender,begin,end,page,pageSize)=>{
  return request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)
}

export const addApi=(data)=>{
  return request.post(`/emps`,data)
}

export const showBackApi=(id)=>{
  return request.get(`/emps/${id}`)
}

export const updateApi=(data)=>{
  return request.put(`/emps`,data)
}
export const delByIdsApi=(ids)=>{
  return request.delete(`/emps?ids=${ids}`)
}